<?php

// Mostrar errores
error_reporting(E_ALL);
ini_set('display_errors','On'); 
//ini_set('error_log','error.log');

// define el path raiz del sitio
$site_path = realpath( dirname( __FILE__));
define ('__SITE_PATH', $site_path);


// archivos necesarios
require_once '../mvc/main_controller.php';

// iniciamos session
session_start ();

if ( empty( $_SESSION['sesion'])) {
	$_SESSION['sesion'] = new MainController();
}
$_SESSION['sesion']->display();

 /*** include the init.php file ***/
//  include 'includes/init.php';
// 
//  /*** load the router ***/
//  $registry->router = new router($registry);
// 
//  /*** set the controller path ***/
//  $registry->router->setPath (__SITE_PATH . '/controller');
// 
//  /*** load up the template ***/
//  $registry->template = new template($registry);
// 
//  /*** load the controller ***/
//  $registry->router->loader();

?>